// src/main/java/com/yin/waimai/config/AmapConfig.java
package com.yin.waimai.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component; // 或者使用 @ConfigurationProperties

@Component // 或者 @Configuration
public class AmapConfig {

    @Value("${amap.webservice.key}")
    private String webServiceKey;

    public String getWebServiceKey() {
        return webServiceKey;
    }
}